package com.wangshb.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangshb.upms.entity.UpmsRolePermission;

import java.util.List;

public interface UpmsRolePermissionService extends IService<UpmsRolePermission> {


    /**
     * 分配角色
     * @param roleId
     * @param permissionIdList
     */
    void allocatePermissions(Long roleId, List<Long> permissionIdList);


    /**
     * 根据用户获取角色
     * @param roleId
     * @return
     */
    List<Long> listPermissionByRoleId(Long roleId);
}
